<?php

namespace yan\backendclient\modules\role\models;

use Yii;

/**
 * This is the model class for table "{{%backend_role_user}}".
 *
 * @property integer $id
 * @property integer $role_id
 * @property integer $member_id
 */
class RoleUser extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%backend_role_user}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['role_id', 'member_id'], 'required'],
            [['role_id', 'member_id'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('debug', 'ID'),
            'role_id' => Yii::t('debug', 'Role ID'),
            'member_id' => Yii::t('debug', 'Member ID'),
        ];
    }
}
